#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2025/1/11
# @Author : Joker
# @Version : Python 3.7
# @Software: PyCharm
from utils.yaml import yamlUtil
from settings import BaseUrl


class FuncUtil:

    @staticmethod
    def var(key):
        """变量替换"""
        return yamlUtil.get_from_yaml(key)

    @staticmethod
    def baseUrl(key):
        return getattr(BaseUrl, key)


funcUtil = FuncUtil()
